module.exports = {
  apps: {
    name: 'custom-checkin-socket.io',
    script: 'index.js',
    listen_timeout: 15000,
    autorestart: true,
    watch: false,
    exec_mode: 'fork',
    max_memory_restart: '2G',
    output: 'logs/out.log',
    error: 'logs/error.log',
    log_date_format: 'YYYY-MM-DD HH:mm:ss.SSS',
    env: {
      NODE_ENV: 'development',
      EXPRESS_PORT: 9002,
      SOCKET_PORT: 9001
    },
    env_production: {
      NODE_ENV: 'production',
      EXPRESS_PORT: 9102,
      SOCKET_PORT: 9101
    }
  }
};
